<?php
namespace app\common\model;

class CheckRule extends Base
{
    /**
     * 获取考勤规则
     */
    public static function getCheckRule($id = 0)
    {
        $info = self::getFind(['id' => $id]);
        if($info === false) return '';
        return $info['name'] . ' ' . secondToHour($info['start_time']) . '-' . secondToHour($info['end_time']);
    }
}